#列表找出最大值 [6,5,2,8,4,2,6,5,8,2,5,0]
l = [6,5,2,8,4,2,6,5,8,2,5,9]
a = 0
w = l[0]
while a<len(l):
    if l[a] > w:
        w=l[a]
    a+=1
print(w)